package cn.group.hotel2.ex;

import cn.group.hotel2.web.ServiceCode;

/**
 * 业务异常类
 *
 * @author wcl
 * @version 0.0.1
 */
public class ServiceException extends RuntimeException{

    private ServiceCode serviceCode;

    public ServiceException(ServiceCode serviceCode, String message) {
        super(message);
        this.serviceCode=serviceCode;
    }

    public ServiceCode getServiceCode(){
        return serviceCode;
    }
}
